package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Stu;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface EchartsMapper extends BaseMapper<Stu> {
    @Select("select count(*) value,mbti name from stu group by mbti")
    List<Map<String, Object>> getMBTIEcharts();
}
